package com.hkbigdata.springbootdi.bean;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author liuanbo
 * @creat 2024-12-10-11:39
 * @see 2194550857@qq.com
 */
@Data
@NoArgsConstructor
public class ResponData {
    private String msg;
    private Integer status;

    private JSONObject data;

    public ResponData(String msg, Integer status, List<String> categories, List<SeriesData> series) {
        this.msg = msg;
        this.status = status;

        JSONObject jsonPJ = new JSONObject();

        jsonPJ.put("categories", categories);
        jsonPJ.put("series", series);

        this.data = jsonPJ;

    }
}
